package com.baor.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baor.common.annotation.Excel;
import com.baor.common.core.domain.BaseEntity;

/**
 * 订单对象 t_order
 * 
 * @author ruoyi
 * @date 2025-07-18
 */

public class TOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long orderId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 支付类型 0、微信支付 1、... */
    @Excel(name = "支付类型 0、微信支付 1、...")
    private Long payType;

    /** 订单来源 0、小程序 1、... */
    @Excel(name = "订单来源 0、小程序 1、...")
    private Long orderSource;

    /** 商品id */
    @Excel(name = "商品id")
    private Long commoId;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 商品总额 */
    @Excel(name = "商品总额")
    private String totalPrice;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private String discountPrice;

    /** 配送金额 */
    @Excel(name = "配送金额")
    private String deliveryPrice;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private String finalPrice;

    /** 买家id */
    @Excel(name = "买家id")
    private Long buyerId;

    /** 配送方式 0、虚拟发货 1、物流配送 */
    @Excel(name = "配送方式 0、虚拟发货 1、物流配送")
    private Long delivery;

    /** 商家地址库id */
    @Excel(name = "商家地址库id")
    private Long deliveryAddr;

    /** 发货状态 0、待支付 1、待发货 2、已发货 3、已完成 4、已关闭 */
    @Excel(name = "发货状态 0、待支付 1、待发货 2、已发货 3、已完成 4、已关闭")
    private Long deliveryStatus;

    /** 订单状态 0、已关闭 1、已完成 */
    @Excel(name = "订单状态 0、已关闭 1、已完成")
    private Long status;

    /** 备注/买家留言 */
    @Excel(name = "备注/买家留言")
    private String remarks;

    /** 维权id */
    @Excel(name = "维权id")
    private Long right;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 是否删除 0、未删除 1、已删除 */
    @Excel(name = "是否删除 0、未删除 1、已删除")
    private Long delFlag;

    private String commoIcon;

    private String commoPrice;

    private String beginTime;

    private String endTime;

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String ending) {
        this.endTime = endTime;
    }

    public String getCommoIcon() {
        return commoIcon;
    }

    public void setCommoIcon(String commoIcon) {
        this.commoIcon = commoIcon;
    }

    public String getCommoPrice() {
        return commoPrice;
    }

    public void setCommoPrice(String commoPrice) {
        this.commoPrice = commoPrice;
    }

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setPayType(Long payType) 
    {
        this.payType = payType;
    }

    public Long getPayType() 
    {
        return payType;
    }

    public void setOrderSource(Long orderSource) 
    {
        this.orderSource = orderSource;
    }

    public Long getOrderSource() 
    {
        return orderSource;
    }

    public void setCommoId(Long commoId) 
    {
        this.commoId = commoId;
    }

    public Long getCommoId() 
    {
        return commoId;
    }

    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }

    public void setTotalPrice(String totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public String getTotalPrice() 
    {
        return totalPrice;
    }

    public void setDiscountPrice(String discountPrice) 
    {
        this.discountPrice = discountPrice;
    }

    public String getDiscountPrice() 
    {
        return discountPrice;
    }

    public void setDeliveryPrice(String deliveryPrice) 
    {
        this.deliveryPrice = deliveryPrice;
    }

    public String getDeliveryPrice() 
    {
        return deliveryPrice;
    }

    public void setFinalPrice(String finalPrice) 
    {
        this.finalPrice = finalPrice;
    }

    public String getFinalPrice() 
    {
        return finalPrice;
    }

    public void setBuyerId(Long buyerId)
    {
        this.buyerId = buyerId;
    }

    public Long getBuyerId()
    {
        return buyerId;
    }

    public void setDelivery(Long delivery) 
    {
        this.delivery = delivery;
    }

    public Long getDelivery() 
    {
        return delivery;
    }

    public void setDeliveryAddr(Long deliveryAddr) 
    {
        this.deliveryAddr = deliveryAddr;
    }

    public Long getDeliveryAddr() 
    {
        return deliveryAddr;
    }

    public void setDeliveryStatus(Long deliveryStatus) 
    {
        this.deliveryStatus = deliveryStatus;
    }

    public Long getDeliveryStatus() 
    {
        return deliveryStatus;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public void setRight(Long right) 
    {
        this.right = right;
    }

    public Long getRight() 
    {
        return right;
    }

    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("payType", getPayType())
            .append("orderSource", getOrderSource())
            .append("commoId", getCommoId())
            .append("number", getNumber())
            .append("totalPrice", getTotalPrice())
            .append("discountPrice", getDiscountPrice())
            .append("deliveryPrice", getDeliveryPrice())
            .append("finalPrice", getFinalPrice())
            .append("buyer", getBuyerId())
            .append("delivery", getDelivery())
            .append("deliveryAddr", getDeliveryAddr())
            .append("deliveryStatus", getDeliveryStatus())
            .append("status", getStatus())
            .append("remarks", getRemarks())
            .append("right", getRight())
            .append("payTime", getPayTime())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .toString();
    }
}
